﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace WirelessAccessPoint.Data
{
    /// <summary>
    /// In32の値をMod2の値へ変換するコンバータです。
    /// </summary>
    public class Int32ToMod2Converter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return ((int) value) % 2;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
